<?
if (!defined('IN_RJ')) die("Error 404");
if($cmd[1]=="sms"){

	if($logged_in){
			$ro=$tpl->get_tpl("sms");
			$qr=$DB->query("SELECT u_sms FROM {$conf['prefix']}user WHERE u_id=".$_SESSION['ses_user_id']);
			$count_sms=$DB->fetch_row($qr);
			$iframe = "<iframe src=\"". $conf['web_url']."/2.php\" style=\"border:0px\" height=\"1px\" width=\"1px\" scrolling=\"no\" allowtransparency=\"true\" ></iframe>";
			$ro=$tpl->assign_vars($ro,array(
					'sms.COUNT'	=> (10-intval($count_sms['u_sms'])).'/10',
					'sms.IFRAME' => $iframe,
				)	
			);
	}
	else $ro=box_announcement("Bạn chưa đăng nhập");
	$main_content=$ro;
	$title_web_bar="Free sms";
	$title_ascii_web_bar="free sms";
}
?>